<template>
    <view class="container">
        <!-- #ifdef APP-PLUS -->
        <androidMap></androidMap>
        <!-- #endif -->
        <!-- #ifdef MP-WEIXIN -->
        <wechartMap @getOnePowerData="getOnePowerData"></wechartMap>
        <!-- #endif -->
    </view>
</template>

<script>
import wechartMap from '../../components/map-wx/map-wx.vue';
import androidMap from '../../components/map-wx/map-app.vue';
import { createNamespacedHelpers } from 'vuex';
const { mapState, mapMutations, mapActions } = createNamespacedHelpers('map');

export default {
    components: {
        wechartMap,
        androidMap
    },
    data() {
        return {};
    },
    methods: {
        ...mapActions(['getPowerData', 'getOnePowerData'])
    },
    onShow() {
        // this.getPowerData();
    }
};
</script>

<style lang="scss" scoped></style>
